var http=require('http');

http.createServer(function(req, res){
  res.writeHead(200, {'Content-Type': 'text/html'});
  res.write('<h1>Node.js,this is my first page!</h1>');
  res.end('<p>hello world</p>');
}).listen(2222);
console.log("HTTP server is listening at port 2222.");
